﻿@using SapaFinance.DTO
@model BankDTO
<fieldset>
    <legend>Карточка банка</legend>
    @Html.HiddenFor(c => c.UID)
    @{
        if (@Model.UID != Guid.Empty)
        {
            Html.RenderPartial("EditorTemplates/ChangableDTO", @Model);
        }
    }
    <table>
        <tr>
            <td>
                <div class="display-label">@Html.LabelFor(m => @Model.Name) @Html.ValidationMessageFor(x => x.Name)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.Name)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.Bin) @Html.ValidationMessageFor(x => x.Bin)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.Bin)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.CorrespondentAccount) @Html.ValidationMessageFor(x => x.CorrespondentAccount)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.CorrespondentAccount)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.City) @Html.ValidationMessageFor(x => x.City)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.City)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.Swift) @Html.ValidationMessageFor(x => x.Swift)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.Swift)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.Address) @Html.ValidationMessageFor(x => x.Address)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.Address)</div>
                <div class="display-label">@Html.LabelFor(m => @Model.IsHidden)</div>
                <div class="editor-field">@Html.EditorFor(m => @Model.IsHidden)</div>
            </td>
        </tr>
    </table>
</fieldset>
